//
//  AppNavigationController.m
//  ApeExample
//
//  Created by Eton on 2017/7/31.
//  Copyright © 2017年 王-庭协. All rights reserved.
//

#import "AppNavigationController.h"

@interface AppNavigationController ()

@end

@implementation AppNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setupNavigationBar];
}



/**
 * 自定义NavigationBar
 */
- (void)setupNavigationBar {
    self.navigationBar.translucent = false;
    self.navigationBar.tintColor = gNavTintColor;
    self.navigationBar.barTintColor = gNavTintColor;
    self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: gNavTintColor,NSFontAttributeName: gNavBarTitleFont};
    [self.navigationBar setBackgroundImage:[UIImage tx_imageWithColor:gNavBackgroundColor] forBarMetrics:UIBarMetricsDefault];
    [self.navigationBar setShadowImage:[UIImage tx_imageWithColor:gNavLineColor]];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
